<%@ page language="java" import="java.util.*,com.bean.*,com.dao.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>账户余额查询</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <form>
	<table width="100%" cellpadding="10px" cellspacing="0px" border="1px" style="border-collapse:collapse" bordercolor="#CCCCCC">
		<tr>
			<td colspan="4">
				银行卡账户余额查询
			</td>
		</tr>
		<tr>
			<td width="40%">
				开户行
			</td>
			<td width="40%">
				卡号
			</td>
			<td width="20%">
				余额
			</td>
			
		</tr>
			<%
		  AccountDao daos = new AccountDao();
		  List<AccountBean> banks = daos.selectAll();
		  for(AccountBean bean : banks)
		  {
		      out.println("<tr>");
		      out.println("<td>"+bean.getBank()+"</td>");
		      out.println("<td>"+bean.getNo()+"</td>");
		      out.println("<td>"+bean.getMoney()+"</td>");
		      out.println("</tr>");
		  }
		%>
	</table>
</form>
  </body>
</html>
